# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

from __future__ import print_function
from __future__ import unicode_literals

import winnotify
n = winnotify.NotifyIcon(b"d"*16, tooltip="Show all stock icons")
n.add()
for bitmap_id in winnotify.StockIcon.ALL_ICONS:
    icon = winnotify.StockIcon(bitmap_id)
    n.icon = icon
    message = "Press ENTER to set the icon to {} (q to quit)".format(bitmap_id)
    response = raw_input(message)
    if response.strip() in ("q", "Q"):
        break
    n.update()

raw_input("Press ENTER to remove the icon")
n.remove()
